package com.dcloud.manage.dblib.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: datalib_logic_table_ext
 * @Author: jeecg-boot
 * @Date:   2024-03-26
 * @Version: V1.0
 */
@Data
@TableName("datalib_logic_table_ext")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="datalib_logic_table_ext对象", description="datalib_logic_table_ext")
public class DatalibLogicTableExt implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;
	/**表编码*/
	@Excel(name = "表编码", width = 15)
    @ApiModelProperty(value = "表编码")
    private Integer tableId;
	/**联合主键*/
	@Excel(name = "联合主键", width = 15)
    @ApiModelProperty(value = "联合主键")
    private String keyCodes;
	/**分桶键*/
	@Excel(name = "分桶键", width = 15)
    @ApiModelProperty(value = "分桶键")
    private String disKey;
	/**分桶数*/
	@Excel(name = "分桶数", width = 15)
    @ApiModelProperty(value = "分桶数")
    private Integer disNum;
	/**分区键(只支持自动分区)*/
	@Excel(name = "分区键(只支持自动分区)", width = 15)
    @ApiModelProperty(value = "分区键(只支持自动分区)")
    private String partitionKey;

    /**分区键(只支持自动分区)*/
    @Excel(name = "分区键是日期时，可以指定按月，按日", width = 15)
    @ApiModelProperty(value = "分区键是日期时，可以指定按月，按日")
    private String partitionDataType;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
